<template>
	<view>
		<!-- 提示 start -->
		<view class="tip">
			<view class="tip-title">一键快速成片适合什么场景使用</view>
			<view class="tip-btn">
				查看介绍
			</view>
		</view>
		<!-- 提示 end -->
		<view class="timu">
			<view class="xuhao">1</view>
			<view class="title">
				按场景脚本上传影视素材
			</view>
		</view>
		<view class="red-tip">
			系统将对不同场景的素材，按照爆款逻辑自动搭配文案和音乐，并批量合成爆款视频
		</view>
		<view class="sing-box">
			<view class="left">拍摄脚本</view>
			<view class="right" @click="navJiaobenku">
				<text>选择拍摄脚本</text>
				<text class="jiantou">></text>
			</view>
		</view>

		<!-- 视频素材 start -->
		<view class="sucai">
			<view class="header">
				图片素材：随机上传不分顺序
			</view>
			<view class="beizhu">
				备注：上传<text style="color: red;">3</text>张图片，最多上传<text style="color: red;">100</text>张图片
			</view>
			<view class="shuoming">
				说明：若本视频工程创建后用于矩阵发布，请上传尽可能多的镜头素材(视频)，避免大量发布时被判重</text>
			</view>
			<view style="display: flex;flex-wrap: wrap;">

				<view style="display: flex;">
					<block v-for="item in videoList" :key="item">
						<view style="position: relative;margin-right: 20rpx;">
							<image src="../../static/images/cat.jpg" style="height: 150rpx;width: 150rpx;"></image>
							<view class="close">
								x
							</view>
						</view>

					</block>

				</view>
				<view class="video-upload">
					<image src="../../static/images/xiangji.png" style="height: 70rpx;width: 70rpx;"></image>

				</view>
			</view>


		</view>
		<!-- 视频素材 end -->
		<!-- 定制爆款文案 start -->
		<view class="timu">
			<view class="xuhao">2</view>
			<view class="title">
				定制爆款文案
			</view>
		</view>
		<view class="red-tip">
			自定义同城流量关键词，智能匹配属于自己行业的爆款短视频文案
		</view>
		<view class="sing-box" @click="navGuanjianci">
			<view class="left">模板关键词</view>
			<view class="right">
				<text style="color:#666">已完成设置</text>
				<text class="jiantou" style="color: #666;">></text>
			</view>
		</view>
		<!-- 定制爆款文案 end -->


		<!-- 定制爆款文案 start -->
		<view class="timu">
			<view class="xuhao">3</view>
			<view class="title">
				文案设置
			</view>
		</view>
		
		<view class="wenan">
		
			<view class="content">
				<view class="item" @click="navDingbuwenan">
					<view class="left">
						视频顶部文案
					</view>
					<view class="right">
						<text>企业工厂-网络公司</text>
						<text>></text>
					</view>
				</view>
				<view class="item">
					<view class="left">
						视频字体颜色
					</view>
					<view class="right">
						<text>智能匹配</text>
						<text>></text>
					</view>
				</view>

				<view class="ziti">
					<text style="font-weight: bold;font-size: 32rpx;">字体大小设置{{form.fontSize}}</text>
					<view class="yulan">
						<text :style="{'font-size':form.fontSize+'px'}">预览字体</text>
					</view>

					<view class="slider-box">
						<slider active-color="#d4237a" min="10" max="50" :value="form.fontSize" block-size="12"
							@changing="fontSizeChange"></slider>
						<view class="slider-footer">
							<view class="xiao">
								小
							</view>
							<view class="huifu" @click="huifuFontSize">
								恢复默认
							</view>
							<view class="da">
								大
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 定制爆款文案 end -->


		<!-- 音乐设置 start -->
		<view class="timu" style="margin-top: 40rpx;">
			<view class="xuhao">4</view>
			<view class="title">
				音乐设置
			</view>
		</view>

		<view class="wenan">

			<view class="content">
				<view class="item" @click="navMusicSucai">
					<view class="left">
						音乐素材设置
					</view>
					<view class="right">
						<text>企业工厂-网络公司</text>
						<text>></text>
					</view>
				</view>
				<view class="item">
					<view class="left">
						音乐个性化
					</view>
					<view class="right">
						<text>去设置</text>
						<text>></text>
					</view>
				</view>

				<view class="ziti">
					<text style="font-weight: bold;font-size: 32rpx;">音量设置{{form.yinliang}}</text>

					<view class="slider-box">
						<slider active-color="#d4237a" min="0" max="100" :value="form.yinliang" block-size="16"
							@changing="yinliangChange"></slider>
						<view class="slider-footer">
							<view class="xiao">
								小
							</view>
							<view class="huifu" @click="huifuYinliang">
								恢复默认
							</view>
							<view class="da">
								大
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 音乐设置 end -->



		<!-- 剪辑库设置 start -->
		<view class="timu" style="margin-top: 40rpx;">
			<view class="xuhao">5</view>
			<view class="title">
				剪辑库设置
			</view>
		</view>

		<view class="wenan">

			<view class="content">
				<view class="item">
					<view class="left">
						剪辑库名称
					</view>
					<view style="display: flex;align-items: center;margin-right: -30rpx;">
						<input value="一键快速成片+3月6日" style="height: 50rpx;"></input>
					</view>
				</view>
				<view class="item">
					<view class="left">
						商家所属行业
					</view>
					<view class="right">
						<text>企业工厂-网络公司</text>
					</view>
				</view>
				<view class="item">
					<view class="left">
						商家所属行业
					</view>
					<view class="right">
						<text>企业工厂-网络公司</text>
					</view>
				</view>
				<view class="ziti">
					<text style="font-weight: bold;font-size: 32rpx;">音量设置{{form.yinliang}}</text>

					<view class="slider-box">
						<slider active-color="#d4237a" min="0" max="100" :value="form.yinliang" block-size="16"
							@changing="yinliangChange"></slider>
						<view class="slider-footer">
							<view class="xiao">
								小
							</view>
							<view class="huifu" @click="huifuYinliang">
								恢复默认
							</view>
							<view class="da">
								大
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 音乐设置 end -->

	</view>
</template>

<script>
	export default {
		data() {
			return {
				// fontSize: 24,
				// yinliang: 10,
				form:{
					fontSize:24,
					yinliang: 10,
					jiaobenId:null,
					videoList: [
					    
					    // {
					    //   "mediaURL": "https://jz-cnsiot.oss-cn-shanghai.aliyuncs.com/mojian/2024/3/4/170951478384107b8d391cce041e1bc730f7b54b17346"
					    // }
					  ],
					  "audioUrl": "https://jz-cnsiot.oss-cn-shanghai.aliyuncs.com/mojian/2024/3/4/1709540116491365aadd4408548ddbf5301c6748431f2",
					  "content": "心若向阳，无畏悲伤。让阳光洒满每个角落，点亮我们的人生之旅。",
					  "fontColor": "#ff0000"
				}
			}
		},
		methods: {
			fontSizeChange(e) {
				this.form.fontSize = e.detail.value
			},
			huifuFontSize(e) {
				this.form.fontSize = 24
			},
			yinliangChange(e) {
				this.form.yinliang = e.detail.value
			},
			huifuYinliang(e) {
				this.form.yinliang = 10
			},
			//导航脚本库
			navJiaobenku(){
				uni.navigateTo({
					url:"/pages/mkvideo/jiaobenjiaoxue"
				})
			},
			//导航到关键词
			navGuanjianci(){
				uni.navigateTo({
					url:"/pages/mkvideo/dingzhibaokuanwenan"
				})
			},
			navDingbuwenan(){
				uni.navigateTo({
					url:"/pages/mkvideo/dingbuwenan"
				})
			},
			navMusicSucai(){
				uni.navigateTo({
					url:"/pages/mkvideo/musicSucai"
				})
			}


		}
	}
</script>

<style scoped lang="scss">
	page {
		background: #f1f1f1;
	}

	.tip {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #fff;
		height: 80rpx;
		margin: 20rpx 30rpx;
		border-radius: 12rpx;
		background: royalblue;

		.tip-title {
			font-size: 30rpx;
			margin-left: 20rpx;
		}

		.tip-btn {
			height: 50rpx;
			line-height: 50rpx;
			text-align: center;
			border: 1rpx solid #fff;
			width: 130rpx;
			font-size: 28rpx;
			margin-right: 20rpx;
			border-radius: 10rpx;
		}
	}

	.timu {
		display: flex;
		align-items: center;
		margin: 30rpx;

		.xuhao {
			height: 42rpx;
			width: 42rpx;
			text-align: center;
			line-height: 42rpx;
			background: #333;
			color: #fff;
			font-size: 24rpx;
		}

		.title {
			color: #333;
			font-size: 36rpx;
			font-weight: 700;
			margin-left: 20rpx;
		}
	}

	.red-tip {
		font-size: 28rpx;
		color: red;
		margin: 0 30rpx 30rpx 30rpx;
	}

	.sing-box {
		margin: 30rpx;
		background: #fff;
		padding: 20rpx 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 12rpx;

		.left {
			font-size: 32rpx;
			font-weight: bold;
		}

		.right {
			color: red;
			font-size: 32rpx;
			display: flex;
			align-items: center;
			justify-content: center;

			.jiantou {
				font-size: 48rpx;
				margin-left: 10rpx;
			}
		}
	}

	// 视频素材start
	.sucai {
		margin: 30rpx;
		background: #fff;
		border-radius: 12rpx;
		padding: 20rpx;

		.header {
			font-size: 32rpx;
			font-weight: 700;
			padding-bottom: 20rpx;
			border-bottom: 1rpx solid #f1f1f1;
		}

		.beizhu {
			font-size: 26rpx;
			color: #666;
			margin: 30rpx 0 20rpx 0;
		}

		.shuoming {
			font-size: 26rpx;
			color: #666;
			margin: 30rpx 0 20rpx 0;
		}

		.video-upload {
			height: 150rpx;
			width: 150rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			background: #eee;
			border-radius: 10rpx;
		}
	}

	//文案设置
	.wenan {
		margin: 30rpx;
		background: #fff;

		.header {
			display: flex;
			background: rgb(225, 226, 247);
			height: 80rpx;
			align-items: center;

			.header-item {
				flex: 1;
				text-align: center;
				font-size: 32rpx;
			}
		}

		.content {
			padding: 0 30rpx;
			padding-bottom: 20rpx;

			.item {
				height: 80rpx;
				line-height: 80rpx;
				font-size: 32rpx;
				display: flex;
				justify-content: space-between;
				border-bottom: 1rpx solid #f1f1f1;

				.left {
					font-weight: bold;
				}

				.right {
					color: #666;
				}
			}

			.ziti {
				padding-top: 30rpx;

				.yulan {
					height: 150rpx;
					line-height: 150rpx;
					width: 100%;
					text-align: center;
				}

				.slider-box {
					background: #eee;
					border-radius: 12rpx;
					margin: 0 10rpx 10rpx 10rpx;
					padding: 20rpx 0;

					.slider-footer {
						display: flex;
						justify-content: space-around;
						align-items: center;

						.xiao {
							font-size: 28rpx;

						}

						.huifu {
							width: 150rpx;
							height: 50rpx;
							line-height: 50rpx;
							font-size: 28rpx;
							border: 1rpx solid #ccc9ce;
							text-align: center;
							border-radius: 25rpx;
						}

						.da {
							font-size: 28rpx;
						}
					}

				}
			}

		}
	}

	.close {
		width: 50rpx;
		height: 50rpx;
		line-height: 50rpx;
		background: #727073;
		color: #fff;
		position: absolute;
		right: 0;
		top: 0;
		border-radius: 25rpx;
		text-align: center;
	}
</style>